package org.robotlegs.demos.lazyfsm.controllers.commands.startup
{
	import org.robotlegs.core.ICommand;
	import org.robotlegs.mvcs.Command;

	import org.robotlegs.demos.lazyfsm.views.components.TheLegs;
	import org.robotlegs.demos.lazyfsm.views.components.IntroView;
	import org.robotlegs.demos.lazyfsm.views.mediators.LazyFSMMediator;
	import org.robotlegs.demos.lazyfsm.views.mediators.TheLegsMediator;
	import org.robotlegs.demos.lazyfsm.views.mediators.IntroViewMediator;

	public class PrepViewCommand extends Command implements ICommand
	{
		override public function execute():void
		{
			mediatorFactory.mapMediator(LazyFSM, LazyFSMMediator);
			mediatorFactory.createMediator(contextView);
			mediatorFactory.mapMediator(TheLegs, TheLegsMediator);
			mediatorFactory.mapMediator(IntroView, IntroViewMediator);
		}
	}
}